package com.yujq.utils;

import com.yujq.bean.transFlow;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

public class insertUtil {
    public static transFlow inserttransFlow(String A,String B,int money,String renson,String type){
        transFlow transFlow = new transFlow();
        transFlow.setOutAccount(A);
        transFlow.setInAccount(B);
        transFlow.setTransType(type);
        transFlow.setFailReason(renson);
        transFlow.setTransTime(new Timestamp(new Date().getTime()));
        transFlow.setAmount(new BigDecimal(money));
        return transFlow;
    }
}
